package com.groupseven.backend.services;

import com.groupseven.backend.domain.Paper.Paper;

import java.util.List;

public interface PaperService {
    /**
     * @Author 王志华
     * @return
     */
    List<Paper> getAllPapersInfo();

    /**
     * @Author 王志华
     * @param paper
     * @return
     */
    int insertPaperInfo(Paper paper);
    /**
     * @Author 王志华
     * @param paper
     * @return
     */
    int isPaperExits (Paper paper);

    List<Paper> selectByPaperusername(String username);

    Paper selectByPaperNumber(String PaperNumber);

    List<Paper> selectByPaperName(String PaperName);

    int updatePaper(Paper paper);

    int deleteByPaperNumber(String PaperNumber);

    int deleteallPapers();

    //////////////////////////////////////////
    int mutildelPapers(List<String> PaperNumbers);

    List<Paper> getlikeByPaperName(String PaperName);

    List<Paper> getlikeMyPaperInfo(String username);

    List<Paper> getlikeByPaperNumber(String PaperNumber);

    List<Paper> getlikeByAllAuthors(String AllAuthors);
////////////////////////////////////////////

    /////////////////////////////////
    List<Paper> searchqueryPaper(String query);
    ///////////////////////////////
    ////////////////////////////////////
    List<Paper> searchuserqueryPaper (String query,String username);
    ///////////////////////////////////
}
